package com.virtium.vpc.dao;

import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Example;

import com.virtium.vpc.hibernate.model.VpcProduct;

/**
 * A data access object (DAO) providing persistence and search support for
 * VpcProduct entities. Transaction control of the save(), update() and delete()
 * operations can directly support Spring container-managed transactions or they
 * can be augmented to handle user-managed Spring transactions. Each of these
 * methods provides additional information for how to configure it for the
 * desired type of transaction control.
 * 
 * @see aa.VpcProduct
 * @author NguyenTuanAnh
 */

public interface VpcProductDAO extends GenericDAO {
	public boolean save(VpcProduct transientInstance);

	public void delete(VpcProduct persistentInstance);
	public boolean update(VpcProduct persistentInstance);

	public VpcProduct findById(java.lang.Integer id);

	public List findByExample(VpcProduct instance);

	public List findByProperty(String propertyName, Object value);

	public List findByPn(Object pn);

	public List findByCongigurationId(Object congigurationId);

	public List findByDensityId(Object densityId);

	public List findByModulerankId(Object modulerankId);

	public List findByPackageId(Object packageId);

	public List findByProductstatusId(Object productstatusId);

	public List findByTechnologyId(Object technologyId);

	public List findByFormFactorId(Object formFactorId);

	public List findByRamdensityId(Object ramdensityId);

	public List findByHeightId(Object heightId);

	public List findByThicknessId(Object thicknessId);

	public List findBySpeedId(Object speedId);

	public List findBySpecialty(Object specialty);

	public List findByDataSheet(Object dataSheet);

	public List findByProductBrief(Object productBrief);

	public List findByRuggedMemory(Object ruggedMemory);

	public List findByHighTemp(Object highTemp);

	public List findAll();

	public VpcProduct merge(VpcProduct detachedInstance);

	public void attachDirty(VpcProduct instance);

	public void attachClean(VpcProduct instance);
	
	public List queryString(String queryString);
}